package com.zhehekeji.opsys.api.entity;

// Generated 2016-11-3 10:47:48 by Hibernate Tools 3.4.0.CR1

import java.util.Date;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * TSurveyAnswer generated by hbm2java
 */
@Entity
@Table(name="t_survey_answer")
public class TSurveyAnswer implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 3250440753983448042L;
	private Long id;
	private String userId;
	private TSurveyQuestion tsurveyQuestion;
	private String choiceIds;
	private String choiceOrdernos;
	private String productCode;
	private String productName;
	private Integer resolution;
	private Integer epgPlatformType;
	private Date createTime;
	private Long cpCode;

	public TSurveyAnswer() {
	}
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(name="ID",length=20,nullable=false,unique=true)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	@Column(name="USER_ID",length=64,nullable=true)
	public String getUserId() {
		return this.userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}
	@ManyToOne(cascade=CascadeType.REFRESH,fetch=FetchType.EAGER,optional=true)
	@JoinColumn(name="QUESTION_ID")
	public TSurveyQuestion getTsurveyQuestion() {
		return tsurveyQuestion;
	}

	public void setTsurveyQuestion(TSurveyQuestion tsurveyQuestion) {
		this.tsurveyQuestion = tsurveyQuestion;
	}
	@Column(name="CHOICE_IDS",length=128,nullable=true)
	public String getChoiceIds() {
		return this.choiceIds;
	}

	public void setChoiceIds(String choiceIds) {
		this.choiceIds = choiceIds;
	}
	@Column(name="CHOICE_ORDERNOS",length=128,nullable=true)
	public String getChoiceOrdernos() {
		return choiceOrdernos;
	}

	public void setChoiceOrdernos(String choiceOrdernos) {
		this.choiceOrdernos = choiceOrdernos;
	}
	@Column(name="PRODUCT_CODE",length=64,nullable=true)
	public String getProductCode() {
		return this.productCode;
	}

	public void setProductCode(String productCode) {
		this.productCode = productCode;
	}
	@Column(name="PRODUCT_NAME",length=128,nullable=true)
	public String getProductName() {
		return this.productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}
	@Column(name="RESOLUTION",length=2,nullable=true)
	public Integer getResolution() {
		return this.resolution;
	}

	public void setResolution(Integer resolution) {
		this.resolution = resolution;
	}
	@Column(name="EPG_PLATFORM_TYPE",length=2,nullable=true)
	public Integer getEpgPlatformType() {
		return this.epgPlatformType;
	}

	public void setEpgPlatformType(Integer epgPlatformType) {
		this.epgPlatformType = epgPlatformType;
	}
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="CREATE_TIME",nullable=true)
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	@Column(name="CP_CODE",length=20,nullable=true)
	public Long getCpCode() {
		return this.cpCode;
	}

	public void setCpCode(Long cpCode) {
		this.cpCode = cpCode;
	}
}
